import request from '@/config/axios'
//获得游客评价分页
export const getTouristPage = async (data) => {
  return await request.post({ url: '/countryside/visitor_evaluate/page', data })
}
//获取游客评价详情
export const getTouristdetail = async (id) => {
  return await request.get({ url: '/countryside/visitor_evaluate/get?id=' + id })
}
//删除游客评价
export const deleteTouristList = async (ids) => {
  return await request.delete({
    url: `/countryside/visitor_evaluate/delete`,
    params: {
      ids: ids.join(',')
    }
  })
}

//新增游客评价
// export const createTourist = async (data) => {
//   return await request.post({ url: '/countryside/visitor_evaluate/create', data })
// }




//获取景区活动分页
export const getActivityPage = async (data) => {
  return await request.post({ url: '/countryside/scenic_area_activity/page', data })
}
//创建景区活动
export const createActivity = async (data) => {
  return await request.post({ url: '/countryside/scenic_area_activity/create', data })
}
//获取景区活动详情
export const getActivitydetail = async (id) => {
  return await request.get({ url: '/countryside/scenic_area_activity/get?id=' + id })
}
//更新景区活动
export const updateActivity = async (data) => {
  return await request.put({ url: '/countryside/scenic_area_activity/update', data })
}
//批量删除景区活动
export const deleteActivityList = async (ids) => {
  return await request.delete({
    url: `/countryside/scenic_area_activity/delete`,
    params: {
      ids: ids.join(',')
    }
  })
}